﻿using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;

namespace HCD.User.Dtos
{
    public class LoginInput
    {
        /// <summary>
        /// 账号
        /// </summary>
        [Required(AllowEmptyStrings = false, ErrorMessage = "AccountIsRequired")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(AllowEmptyStrings =false,ErrorMessage = "PwdIsRequired")]
        public string Password { get; set; }
        /// <summary>
        /// 登录用户IP地址
        /// </summary>
        public string IpAddress { get; set; }

        ///// <summary>
        ///// 企业ID可选
        ///// </summary>
        //public int? TenantID { get; set; }
        ///// <summary>
        ///// 用于微信登录
        ///// </summary>
        //public string OpenType { get; set; }
        //public string OpenCode { get; set; }
    }
}
